@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

.home-return-btn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 150px;
  padding: 0.8rem 1rem 0.8rem 0.85rem;
  text-decoration: none;
  color: #222;
  background: rgba(255, 255, 255, 0.452);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  box-shadow:
    0 10px 24px rgba(104, 42, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.home-return-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(37, 70, 91, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.516);
  opacity: 0.96;
}

.home-return-btn__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-return-btn__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-return-btn__title {
  color: #fff;
  text-shadow:
    0.5px 0 0 #333333,
   -0.5px 0 0 #333333,
    0 0.5px 0 #333333,
    0 -0.5px 0 #333333,
    0.5px 0.5px 0 #333333,
   -0.5px 0.5px 0 #333333,
    0.5px -0.5px 0 #333333,
   -0.5px -0.5px 0 #333333;
}

.container {
  position: static;
  height: 0;
  background: transparent;
  box-shadow: none;
}

.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 35px;
  cursor: pointer;
  z-index: 3000;
  background: linear-gradient(145deg, #e7e7e7, #fbfbfb);
  border-radius: 15px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    7px 9px 18px rgba(0, 0, 0, 0.16),
    inset -1px -1px 0 rgba(210, 210, 210, 0.65);
  transition: all 0.3s ease;
}

.hamburger-menu::before {
  content: none;
}

.hamburger-menu:hover {
  transform: translateY(-2px);
  box-shadow: 10px 12px 24px rgba(0, 0, 0, 0.16);
}

.hamburger-menu .line {
  display: block;
  position: absolute;
  width: calc(100% - 24px);
  height: 4px;
  background: linear-gradient(90deg, #6b6b6b, #9a9a9a);
  left: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hamburger-menu .line:nth-of-type(1) {
  top: 20%;
}

.hamburger-menu .line:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu .line:nth-of-type(3) {
  bottom: 20%;
  top: auto;
}

.hamburger-menu.active > .line:nth-of-type(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active > .line:nth-of-type(2) {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.hamburger-menu.active > .line:nth-of-type(3) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-menu {
  display: none;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  width: min(82vw, 460px);
  max-height: calc(100vh - 130px);
  padding: 20px 22px 18px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2999;
  background: linear-gradient(
    180deg,
    rgba(114, 177, 232, 0.815) 0%,
    rgba(57, 141, 226, 0.744) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.nav-menu.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(0, 0, 0, 0.04) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.nav-menu.active > * {
  position: relative;
  z-index: 1;
}

.nav-menu__links {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.nav-menu__heading-wrap {
  margin-bottom: 0.3rem;
}

.nav-menu__heading {
  position: relative;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  padding-left: 0.85rem;
  padding-bottom: 0.05rem;
  margin-top: 0.6rem;
  margin-bottom: 0.18rem;
}

.nav-menu__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.15em;
  background: #fff;
  border-radius: 999px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  padding: 6px 0;
  margin: 2px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: 200;
  font-size: 1rem;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.nav-menu a:hover {
  background: transparent;
  transform: translateX(4px);
  color: #fff;
  opacity: 0.85;
}

.menu-link__main {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.menu-link__text,
.nav-menu a {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.menu-link__icon.menu-link__icon--svg {
  width: 1.4rem;
  height: 1.4rem;
  min-width: 1.4rem;
  flex-shrink: 0;
  display: block;
  margin-left: -0.2rem;
}

.menu-link__icon.about-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  overflow: visible;
}

.menu-link__icon.about-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.8rem;
  height: 1.8rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  display: block;
}

.menu-link__icon--svg {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  color: #fff;
  display: block;
}

.menu-link__icon--svg path,
.menu-link__icon--svg circle,
.menu-link__icon--svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-link__arrow {
  font-size: 1.3rem;
  line-height: 1;
  opacity: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-menu__locale-social {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.95rem;
  margin-top: 1rem;
  padding-top: 0.6rem;
}

.nav-menu__locale-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.1rem;
}

.nav-menu__locale-current,
.nav-menu__locale-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  background: transparent;
  transform: none;
}

.nav-menu__locale-current {
  color: #fff;
}

.nav-menu__locale-current i {
  font-size: 1rem;
  line-height: 1;
}

.nav-menu__locale-current:hover,
.nav-menu__locale-sub:hover {
  color: #fff;
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-menu__social-links {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.15rem;
  padding-top: 0;
}

.nav-menu__social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0;
  margin: 0;
  color: #fff;
  text-decoration: none;
  background: transparent;
  transform: none;
  opacity: 1;
}

.nav-menu__social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.nav-menu__social-links i {
  font-size: 1.55rem;
  line-height: 1;
}

@keyframes menuItemFadeInRight {
  from {
    opacity: 0;
    transform: translateX(22px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.nav-menu__heading-wrap,
.nav-menu__links > a,
.nav-menu__locale-social {
  opacity: 0;
  transform: translateX(22px);
}

.nav-menu.active .nav-menu__links > a,
.nav-menu.active .nav-menu__heading-wrap,
.nav-menu.active .nav-menu__locale-social {
  animation: menuItemFadeInRight 0.22s ease forwards;
}

.nav-menu.active .nav-menu__links > *:nth-child(1)  { animation-delay: 0.03s; }
.nav-menu.active .nav-menu__links > *:nth-child(2)  { animation-delay: 0.05s; }
.nav-menu.active .nav-menu__links > *:nth-child(3)  { animation-delay: 0.07s; }
.nav-menu.active .nav-menu__links > *:nth-child(4)  { animation-delay: 0.09s; }
.nav-menu.active .nav-menu__links > *:nth-child(5)  { animation-delay: 0.11s; }
.nav-menu.active .nav-menu__links > *:nth-child(6)  { animation-delay: 0.13s; }
.nav-menu.active .nav-menu__links > *:nth-child(7)  { animation-delay: 0.15s; }
.nav-menu.active .nav-menu__links > *:nth-child(8)  { animation-delay: 0.17s; }
.nav-menu.active .nav-menu__links > *:nth-child(9)  { animation-delay: 0.19s; }
.nav-menu.active .nav-menu__links > *:nth-child(10) { animation-delay: 0.21s; }
.nav-menu.active .nav-menu__links > *:nth-child(11) { animation-delay: 0.23s; }
.nav-menu.active .nav-menu__links > *:nth-child(12) { animation-delay: 0.23s; }
.nav-menu.active .nav-menu__locale-social {
  animation-delay: 0.26s;
}

@media (max-width: 768px) {
  .home-return-btn {
    top: 14px;
    left: 14px;
    min-width: 118px;
    padding: 0.2rem;
    gap: 0.5rem;
    border-radius: 6px;
  }

  .home-return-btn__icon {
    width: 30px;
    height: 30px;
  }

  .home-return-btn__title {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transform: translateX(-6px);
  }

  .hamburger-menu {
    top: 14px;
    right: 14px;
    width: 45px;
    height: 35px;
    border-radius: 15px;
    padding: 12px;
  }

  .hamburger-menu .line {
    width: calc(100% - 24px);
    left: 12px;
    height: 4px;
  }

  .hamburger-menu .line:nth-of-type(1) {
    top: 20%;
  }

  .hamburger-menu .line:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-menu .line:nth-of-type(3) {
    bottom: 20%;
    top: auto;
  }

  .hamburger-menu.active > .line:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .hamburger-menu.active > .line:nth-of-type(2) {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }

  .hamburger-menu.active > .line:nth-of-type(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }

  .nav-menu.active {
    width: min(84vw, 460px);
    max-height: calc(100vh - 105px);
    padding: 18px 20px 16px;
    border-radius: 28px;
  }

  .nav-menu a {
    padding: 5px 0;
    margin: 1px 0;
    font-size: 0.96rem;
  }

  .menu-link__main {
    gap: 0.65rem;
  }

  .menu-link__icon {
    font-size: 0.95rem;
    width: 1rem;
  }

  .menu-link__icon.about-icon {
    width: 1rem;
    height: 1rem;
  }

  .menu-link__icon.about-icon img {
    width: 1.65rem;
    height: 1.65rem;
  }

  .menu-link__arrow {
    font-size: 1.3rem;
  }

  .nav-menu__locale-social {
    gap: 0.8rem;
    margin-top: 0.85rem;
    padding-top: 0.45rem;
  }

  .nav-menu__locale-row {
    gap: 0.9rem;
  }

  .nav-menu__locale-current,
  .nav-menu__locale-sub {
    font-size: 0.95rem;
  }

  .nav-menu__locale-current i {
    font-size: 0.95rem;
  }

  .nav-menu__social-links {
    gap: 1rem;
  }

  .nav-menu__social-links i {
    font-size: 1.4rem;
  }
}
.nav-menu__locale-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav-menu__locale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex: 0 0 auto;
}

.nav-menu__locale-icon i {
  color: inherit;
}

.nav-menu__locale-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-menu__locale-current,
.nav-menu__locale-sub {
  color: #fff;
  text-decoration: none;
}

.nav-menu__heading-wrap {
  margin-bottom: 0.55rem;
}

.nav-menu__heading {
  position: relative;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  padding-left: 0.85rem;
  padding-bottom: 0.55rem; /* 線のぶん少し余白を増やす */
  margin-top: 0.6rem;
  margin-bottom: 0.35rem;
}

.nav-menu__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}